import Vue from 'vue'
import Router from 'vue-router'
// import { welcomeRouter } from './router'

Vue.use(Router)

// 路由配置
// const RouterConfig = {
//   mode: 'history',
//   routes: welcomeRouter
// }
// const router = new Router(RouterConfig)

// router.beforeEach((to, from, next) => {
// })

// export default router

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/welcome',
      name: 'welcome',
      component: resolve => require(['@/pages/welcome'], resolve)
    }
  ]
})
